<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
    #parse("system/component/global-macro.html")
    #parse("system/component/header-wrapper.html")
</head>
<body>
#parse("system/component/body-wrapper.html")

<section class="main">
    <div id="divMain">
        <div class="divHeader"
             style="padding-left: 38px; background: transparent url('/system/image/common/article_32.png') no-repeat scroll 3px 9px / 32px auto;">
            文章管理
        </div>
        <div class="SubMenu"></div>
        <div id="divMain2">
            <form action="/system/management/article-management.html" method="post" id="search" class="search">
                <p>搜索:&nbsp;&nbsp;分类
                    <select style="width:140px;" name="category" size="1" class="edit">
                        <option value="">任意</option>
                        #foreach($category in $!cache.categoryModelList)
                        #if($!searchCateId && $!searchCateId==$category.id )
                        <option value="$!category.id" selected="selected">$!category.name</option>
                        #else
                        <option value="$!category.id">$!category.name</option>
                        #end
                        #end
                    </select>&nbsp;&nbsp;&nbsp;&nbsp;类型
                    <select style="width:100px;" name="status" size="1" class="edit">
                        <option value="">任意</option>
                        #foreach($status in $!cache.articleStatusEnumList)
                        #if($!searchStatus && $!searchStatus==$status.status )
                        <option value="$!status.status" selected="selected">$!status.desc</option>
                        #else
                        <option value="$!status.status">$!status.desc</option>
                        #end
                        #end
                    </select>&nbsp;&nbsp;&nbsp;&nbsp;标题
                    <input type="text" value="$!searchTitle" style="width:250px;" name="title"> &nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" value="提交" class="button"></p>
            </form>
            <table border="1" class="tableFull tableBorder tableBorder-thcenter">
                <tbody>
                <tr class="color1">
                    <th>编号</th>
                    <th>文章分类</th>
                    <th>文章作者</th>
                    <th>文章标题</th>
                    <th>最后更新时间</th>
                    <th>评论数</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                #foreach($model in $articles)
                <tr class="color3">
                    <td class="td5">$!model.id</td>
                    <td class="td10">$!model.cateName</td>
                    <td class="td10">$!model.authName</td>
                    <td>
                        <a target="_blank" href="/article/${model.id}.html" class="button">
                            <img width="16" src="/system/image/admin/link.png"></a>
                        $!model.title
                    </td>
                    <td class="td20">$!date.format('yyyy-MM-dd HH:mm:ss',$!model.modifyTime)</td>
                    <td class="td5">$!model.commentNum</td>
                    <td class="td5">$!model.statusName</td>
                    <td class="td10 tdCenter">
                        <a href="/system/management/article-edit.html?id=$!model.id&type=show" class="button">
                            <img width="16" title="编辑" alt="编辑" src="/system/image/admin/page_edit.png"/>
                        </a>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/system/management/article-remove.html?id=$!model.id"
                           onclick="return window.confirm('单击“确定”继续。单击“取消”停止。');" class="button">
                            <img width="16" title="删除" alt="删除" src="/system/image/admin/delete.png"/>
                        </a>
                    </td>
                </tr>
                #end
                </tbody>
            </table>
            #pagebar("article",$page)
        </div>
    </div>
</section>
#parse("system/component/footer-wrapper.html")
</body>
</html>